<?php

namespace app\home\validate;

use think\Validate;

class Squares extends Validate
{
    protected $rule =   [
        'id'  => 'require',
        'uid'  => 'require',
        'contents'  => 'require',
        'type'  => 'require',
    ];

    protected $message  =   [
        'id.require' => '动态id不能为空',
        'uid.require' => '用户id不能为空',
        'contents.require' => '请输入内容',
        'type.require' => '请选择要发布的内容类型',

    ];

    protected $scene = [
        'create' => ['uid,contents,type'],
    ];
}
